import React, {Component} from 'react'
import {observer} from 'mobx-react';
import { withRouter } from 'react-router-dom';
import { SearchAdvanced } from 'weaver-mobile-page';

@withRouter
@observer
export default class AdvanceSearchPage extends Component{
    render(){
        const {store} = this.props;
        const {advanceSearchPageStore, doQuickSearch, doReset} = store;
        //高级搜索属性
        const searchAdvancedProps = {
            store: advanceSearchPageStore,
            onSubmit: () => {
                doQuickSearch();
            },
            onReset: () => {
                doReset();
                doQuickSearch();
                this.props.history.go(-1);
            },
            onChange: () => {
            }
        }

        return (
            <SearchAdvanced {...searchAdvancedProps} />
        )
    }
}